
const express = require("express");
const app = express();
const routes = require("./routes");
 
const port = 3088; // 端口
 
app.use(express.json()); // 使用json数据格式中间件

app.use(express.urlencoded({        //解析form表单
    extended: true
  }));
routes(app); // 路由
 
app.listen(port, () => {
    console.log(`http://localhost:${port}`)
});